import Main from '@/components/main'
import MainGame from '@/components/main/main-game.vue'
export default [
  {
    path: '/applets-management',
    name: 'applets-management',
    component: Main,
    meta: {
      title: '小程序管理',
      access: ['INTEGRAL_MANAGER', 'COMPETITION_REGULATION'],
    },
    children: [
      {
        path: 'competition-regulation',
        name: 'competition-regulation',
        component: MainGame,
        meta: {
          title: '赛事管理',
        },
        children:[
          {
            path: 'index',
            name: 'competition-regulation-list',
            meta: {
              title: '小程序竞赛规程配置'
            },
            component: () => import('@/view/competition-regulation/index.vue')
          },
          {
            path: 'config/:type/:id',
            name: 'competition-regulation-config',
            meta: {
              hideInMenu: true,
              title: '小程序竞赛详情'
            },
            component: () => import('@/view/competition-regulation/config.vue')
          },
          {
            path: 'add',
            name: 'competition-regulation-add',
            meta: {
              hideInMenu: true,
              title: '新增竞赛规程'
            },
            component: () => import('@/view/competition-regulation/add.vue')
          }
        ]
      },
      {
        path: 'event-management',
        name: 'event-management',
        component: MainGame,
        meta: {
          title: '报名管理',
        },
        children: [
          {
            path: 'index',
            name: 'event-management-list',
            meta: {
              title: '报名赛事管理'
            },
            component: () => import('@/view/event-management/index.vue')
          },

          {
            path: 'query',
            name: 'event-management-query',
            meta: {
              title: '球员报名查询'
            },
            component: () => import('@/view/event-management/query.vue')
          },
          {
            path: 'money',
            name: 'event-management-money',
            meta: {
              title: '缴费管理'
            },
            component: () => import('@/view/event-management/money.vue')
          },
          {
            path: 'suspension',
            name: 'event-management-suspension',
            meta: {
              title: '禁赛管理'
            },
            component: () => import('@/view/event-management/suspension.vue')
          },
          //event-person 报名管理页
          //money-detail 缴费管理页
          //suspension-detail 禁赛管理页
          //造假的面包屑，解决面包屑层次问题
          {
            path: 'a',
            name: 'a',
            meta: {
              hideInMenu: true,
              title: '报名赛事管理'
            },
            component: MainGame,
            children:[
              {
                path: 'b',
                name: 'b',
                meta: {
                  title: '报名赛事管理'
                },
                component: MainGame,
                children:[
                  {
                    path: 'management-detail/:type/:id',
                    name: 'management-event-person',
                    meta: {
                      title: '报名详情'
                    },
                    component: () => import('@/view/event-management/management-detail.vue')
                  },
                  {
                    path: 'c',
                    name: 'c',
                    meta: {
                      title: '报名详情'
                    },
                    component: MainGame,
                    children:[
                      {
                        path: 'personal-detail/:type/:enrollId',
                        name: 'detail-event-person',
                        meta: {
                          title: '报名选手详情页'
                        },
                        component: () => import('@/view/event-management/personal-detail.vue')
                      },

                    ]
                  },
                ]
              },
            ]
          },
          {
            path: 'd',
            name: 'd',
            meta: {
              hideInMenu: true,
              title: '缴费管理'
            },
            component: MainGame,
            children:[
              {
                path: 'e',
                name: 'e',
                meta: {
                  title: '缴费管理'
                },
                component: MainGame,
                children:[
                  {
                    path: 'management-detail/:type/:id',
                    name: 'management-money-detail',
                    meta: {
                      title: '报名详情'
                    },
                    component: () => import('@/view/event-management/management-detail.vue')
                  },
                  {
                    path: 'f',
                    name: 'f',
                    meta: {
                      title: '报名详情'
                    },
                    component: MainGame,
                    children:[
                      {
                        path: 'personal-detail/:type/:enrollId',
                        name: 'detail-money-detail',
                        meta: {
                          title: '报名选手详情页'
                        },
                        component: () => import('@/view/event-management/personal-detail.vue')
                      },

                    ]
                  },
                ]
              },
            ]
          },
          {
            path: 'g',
            name: 'g',
            meta: {
              hideInMenu: true,
              title: '禁赛管理'
            },
            component: MainGame,
            children:[
              {
                path: 'h',
                name: 'h',
                meta: {
                  title: '禁赛管理'
                },
                component: MainGame,
                children:[
                  {
                    path: 'management-detail/:type/:id',
                    name: 'management-suspension-detail',
                    meta: {
                      title: '报名详情'
                    },
                    component: () => import('@/view/event-management/management-detail.vue')
                  },
                  {
                    path: 'i',
                    name: 'i',
                    meta: {
                      title: '报名详情'
                    },
                    component: MainGame,
                    children:[
                      {
                        path: 'personal-detail/:type/:enrollId',
                        name: 'detail-suspension-detail',
                        meta: {
                          title: '报名选手详情页'
                        },
                        component: () => import('@/view/event-management/personal-detail.vue')
                      },

                    ]
                  },
                ]
              },
            ]
          },
        ]
      },
      {
        path: 'ball-skill',
        name: 'ball-skill',
        component: MainGame,
        meta: {
          title: '学球技',
        },
        children: [
          {
            path: 'video-management',
            name: 'video-management',
            meta: {
              title: '视频管理'
            },
            component: () => import('@/view/learn-ball-skill/video-management/video-management.vue')
          },
          {
            path: 'online-exam',
            name: 'online-exam',
            meta: {
              title: '在线考试'
            },
            component: () => import('@/view/learn-ball-skill/online-exam/online-exam.vue')
          },
          //type examInfo 考试信息
          // examList 考卷管理
          //isEdit 是否编辑
          {
            path: 'exam-detail/:type/:unifiedId/:isEdit',
            name: 'exam-detail',
            meta: {
              title: '考试详情',
              hideInLeftMenu: true,
            },
            component: () => import('@/view/learn-ball-skill/online-exam/online-exam-detail.vue')
          },
        ]
      },

    ]
  },
]
